import { reactive } from "vue";
import type { FormRules } from "element-plus";
import { isPhone } from "@pureadmin/utils";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
	partName: [{ required: true, message: "配件名称为必填项", trigger: "blur" }],
	norm: [{ required: true, message: "配件规格为必填项", trigger: "blur" }],
	categoryId: [{ required: true, message: "配件分类为必填项", trigger: "change" }],
  code: [{ required: true, message: "内部型号为必填项", trigger: "blur" }],
  brandId: [{ required: true, message: "品牌为必填项", trigger: "change" }],
	price: [{ required: true, message: "价格为必填项", trigger: "blur" }],
  supplierId: [{ required: true, message: "供应商为必填项", trigger: "change" }],
});
